How to verify SHA or MD5 checksum on macOS

Place hash file in the same directory with the file that you want to verify.

Hash file format:

<checksum><two spaces><filename><end of line>

Hash file example:

32CDE0071ED8086B29BB69993BF17BA9E3CDF43200537434A811A9B6CC271999 Filename.zip

For sha256:

$ shasum -a 256 -c Filename.zip.sha256  

For sha1:

$ shasum -a 1 -c Filename.zip.sha1  

For sha512:

$ shasum -a 512 -c Filename.zip.sha512  

For md5 (manual verify):

$ md5 Filename.zip

Leave a Reply

Your email address will not be published. Required fields are marked *